<?xml version="1.0" encoding="UTF-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Web GridRowDataBound</Title>
      <Author>LSANTANA</Author>
      <Description>Define o corpo de uma pagina do Siga2 com as regions obrigatorias.</Description>
      <Shortcut>s2rowdata</Shortcut>
    </Header>
    <Snippet>
      <Declarations>
        <Literal>
          <ID>NomeGrid</ID>
          <Type>String</Type>
          <ToolTip>O gridview.</ToolTip>
          <Default>[qual_Gridview]</Default>
        </Literal>
        <Object>
          <ID>DataItem</ID>
          <Type>Object</Type>
          <ToolTip>data item.</ToolTip>
          <Default>[informe_o_dataitem]</Default>
        </Object>
      </Declarations>
      <Code Language="VB" Kind="method decl"><![CDATA[
	    Protected Sub $NomeGrid$_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles $NomeGrid$.RowDataBound

        If e.Row.RowType = DataControlRowType.DataRow Then
            Dim _dataItem As $DataItem$ = CType(e.Row.DataItem, $DataItem$)
            'Dim _lnkDownload As LinkButton = CType(e.Row.FindControl("LnkDownload"), LinkButton)
			'...
            
            Throw New NotImplementedException("Caso nao seja usado retire esse case")
        ElseIf e.Row.RowType = DataControlRowType.Header Then
            Throw New NotImplementedException("Caso nao seja usado retire esse case")
        ElseIf e.Row.RowType = DataControlRowType.Footer Then
            Throw New NotImplementedException("Caso nao seja usado retire esse case")
        ElseIf e.Row.RowType = DataControlRowType.EmptyDataRow Then
            Throw New NotImplementedException("Caso nao seja usado retire esse case")
        End If

    End Sub
	  ]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>